import request from '@/utils/request'

// 查询物品图片列表
export function listUrl(query) {
  return request({
    url: '/yyj/gbs/url/list',
    method: 'get',
    params: query
  })
}

// 查询物品图片详细
export function getUrl(urlId) {
  return request({
    url: '/yyj/gbs/url/' + urlId,
    method: 'get'
  })
}

// 新增物品图片
export function addUrl(data) {
  return request({
    url: '/yyj/gbs/url',
    method: 'post',
    data: data
  })
}

export function addUrls(data) {
  return request({
    url: '/yyj/gbs/url/list',
    method: 'post',
    data: data
  })
}

// 修改物品图片
export function updateUrl(data) {
  return request({
    url: '/yyj/gbs/url',
    method: 'put',
    data: data
  })
}

// 删除物品图片
export function delUrl(urlId) {
  return request({
    url: '/yyj/gbs/url/' + urlId,
    method: 'delete'
  })
}
